﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Classes
{
    class Flight
    {
            public string destination;
            public string flightNumber;
            public string planeModel;
            public int hoursCount;

            public void AddFlightInfo()
            {
                Console.WriteLine("Entry destination city");
                destination = Console.ReadLine();
                Console.WriteLine("Entry flight number");
                flightNumber = Console.ReadLine();
                Console.WriteLine("Entry a model of plane");
                planeModel = Console.ReadLine();
                Console.WriteLine("Entry hours count");
                hoursCount = Int32.Parse(Console.ReadLine());
            }

            public void PrintFlightInfo()
            {
                Console.WriteLine("Flight number {0},\t model - {1}, will arrive to {2} after {3} hours", flightNumber, planeModel, destination, hoursCount);
            }

    }
}
